import {ref,onMounted} from 'vue'

export default function(){

    const sum  =  ref(0)

    const increment = ()=>{
        sum.value++
    }

    const decrement = ()=>{
        sum.value--
    }

    onMounted(()=>{
        increment
    })


    return {sum,increment,decrement}

}